package easycloud.ecs.common.service;

import java.net.URL;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import easycloud.ecs.common.domain.Item;
import easycloud.ecs.common.domain.Provider;
import easycloud.ecs.provider.model.IStorageObjectMetadata;

public interface ItemService {

	URL getAccessURL(Provider remoteProvider, Item item);

	Item getItem(String path, Provider provider);

	Map<String, Item> getItems(Collection<String> paths, Provider provider);

	Map<String, Item> getItems(Provider provider);

	List<Item> updateConflict(List<IStorageObjectMetadata> conflictItems);

	void updateServer(List<IStorageObjectMetadata> localItems);

}
